import React, { useCallback, useEffect, useMemo, useState } from "react";
import "./index.less";
import { useModel } from "umi";


const FormsTitle = (props: any) => {
    const { titleYearData } = props;
    const { initialState } = useModel('@@initialState');
    const { dbname } = initialState?.curPart as API.CurPart;



    return (<>{
        useMemo(() => {
            return (<div className="formsHeader">
                <div className="formTitle">被审计单位提供报表数核对</div>
                {/* <div className="formTitleStyle">
                    {titleYearData.yearStr ? `${titleYearData.yearStr}年12月31日` : 'xxxx年xx月xx日'}
                </div> */}
                <div className="formTabHeader">
                    <div>编制单位：{initialState?.curPart.zcbfName}</div>
                    <div>单位：人民币元 </div>
                </div>
            </div>)
        }, [titleYearData])
    }</>)
}
export default FormsTitle;